<template>
  <div>
    <el-radio v-model="radio" label="cos">备选项</el-radio>
    <el-radio v-model="radio" label="theme-chalk">备选项</el-radio>
    <el-button type="primary">主要按钮</el-button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio: "theme-chalk",
    };
  },
  watch: {
    radio: (newVal, oldVal) => {
      console.log(newVal, oldVal);
      document.getElementById("themeLink").href = `/${newVal}/index.css`;
    },
  },
};
</script>
